# -*- coding: utf-8 -*- 

'''
Created on 2014年2月28日

@author: Administrator
'''

import MySQLdb

class MySQLTool():
    '''
    classdocs
    '''


    def __init__(self):
        '''
        Constructor
        
        '''

    def dbconnetion(self, host, db, port, username, password):
        conn = MySQLdb.Connect(host = host, db = db, port = port, user = username, psw = password)
        cursor = conn.cursor
        return cursor                   